package com.speechb.mapper;

import com.speechb.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 博客 Mapper 接口
 * </p>
 *
 * @author llj
 * @since 2021-03-14
 */
public interface BlogMapper extends BaseMapper<Blog> {

    List<Blog> findAll(@Param("type_id") Integer typeId);

    Blog findContent(@Param("id") String id);

    void updateScanCount(@Param("id") String id, @Param("scan_count") int hot);

    Blog findById(@Param("id") String id);

    List<Blog> findLuceneData(@Param("id") String id);

    List<Blog> findByUser(@Param("uid") String uid, @Param("status") Integer status);
}
